/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const fuwuRouter = {
  path: '/fuwu',
  component: Layout,
  redirect: '/fuwu/tuipiao',
  name: 'Fuwu',
  meta: {
    title: '服务子系统',
    icon: 'user',
    roles: ['服务台']
  },
  children: [
    {
      path: 'tuipiao',
      name: 'Tuipiao',
      component: () => import('@/views/fuwu/tuipiao/tuipiao'),
      meta: { title: '退票' }
    },
    {
      path: 'gaiqian',
      name: 'Gaiqian',
      component: () => import('@/views/fuwu/gaiqian/gaiqian'),
      meta: { title: '改签' }
    },
    {
      path: 'chaxun',
      component: () => import('@/views/fuwu/chaxun/index'), // Parent router-view
      name: 'Chaxun',
      meta: { title: '查询' },
      redirect: '/fuwu/chaxun/chaxun/chaxun',
      children: [
        {
          path: 'chaxun',
          component: () => import('@/views/fuwu/chaxun/chaxun/chaxun'),
          name: 'Chaxun',
          meta: { title: '查询' }
        },
        {
          path: 'cheliang',
          component: () => import('@/views/fuwu/chaxun/cheliang/cheliang'),
          name: 'Cheliang',
          meta: { title: '车辆信息查询' }
        }
      ]
    }
  ]
}

export default fuwuRouter
